home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 22
/
Amiga Format AFCD22 (Jan 1998, Issue 106).iso
/
-seriously_amiga-
/
shareware
/
archivers
/
xfx
/
install
< prev
next >
Wrap
Text File
|
1997-11-05
|
4KB
|
201 lines
; *******************************************
; **** ****
; **** xFX ****
; **** Multilanguage Installation Script ****
; **** © 1997, Alessandro Pedretti ****
; **** ****
; *******************************************
; $VER:xFX_Install 1.1 (12.10.97) Alessandro Pedretti
;
; Language selector (default: english)
;
(set #DefLang 0)
(set #DefDoc 0)
(if (= @language "italiano")
(set #DefLang 1)
)
(if (= @language "deutsch")
(set #DefLang 2)
)
(if (= @language "dansk")
(set #DefLang 3)
)
(select #DefLang
; English
((set #DefDoc 0)
(set #ARexxTxt "Do you want install ARexx scripts ?")
(set #DirTxt "Select the directory where the xFX drawer will be created.")
(set #LangDocTxt "Please select your preferred language documentation")
(set #LangHelpTxt "You must specify your language.")
(set #LangLocTxt "Please select the language for localization")
)
; Italiano
((set #DefDoc 1)
(set #ARexxTxt "Vuoi installare gli scripts ARexx ?")
(set #DirTxt "Selezionare la directory dove verrà creato il cassetto xFX.")
(set #LangDocTxt "Selezionare il linguaggio per la documentazione")
(set #LangHelpTxt "E' necessario specificare un linguaggio.")
(set #LangLocTxt "Selezionare il linguaggio per la localizzazione")
)
; Deutsch
((set #DefDoc 0)
(set #ARexxTxt "Wollen Sie die ARexx Scripts installiren ?")
(set #DirTxt "Bitte wählen Sie einen Platz für xFX. Ein Verzeichnis namens 'xFX' wird dort automatisch erzeugt.")
(set #LangDocTxt "Bitte wählen Sie die Sprache für die Dokumentation aus.")
(set #LangHelpTxt "Sie wählen die Sprache aus.")
(set #LangLocTxt "Bitte wählen Sie die Sprache für die Programmen aus.")
)
; Dansk
((set #DefDoc 0)
(set #ARexxTxt "Ønsker du at installere ARexx eksempler ?")
(set #DirTxt "Vælg stien hvor xFX skuffen skal oprettes.")
(set #LangDocTxt "Vælg venligst dit foretrukne sprog for dokumentationen")
(set #LangHelpTxt "Specificer hvilken dokumentation du ønsker at installere")
(set #LangLocTxt "Vælg venligst sprog til brug i programmet")
)
)
;
; Default xFX directory
;
(complete 20)
(set xFXDir
(askdir
(prompt #DirTxt)
(help @askdir-help)
(default @default-dest)
(newpath)
)
)
(set xFXDir(tackon xFXDir "xFX"))
(set @default-dest xFXDir)
;
; Documentation language
;
(complete 30)
(set DocLang
(select
(askchoice
(prompt #LangDocTxt)
(help #LangHelpTxt)
(choices "English" "Italiano")
(default #DefDoc)
)
"xFX-Eng.guide" "xFX-Ita.guide"
)
)
(set DocLang (cat "Docs/" DocLang))
;
; Catalogs
;
(complete 40)
(set CatLang
(askoptions
(prompt #LangLocTxt)
(help #LangHelpTxt)
(default 1)
(choices "English (Built-In)"
"Italiano"
"Dansk"
)
)
)
;
; Copy of files
;
(complete 50)
(copyfiles
(source "")
(help @copyfiles-help)
(infos)
(noposition)
(dest @default-dest)
(choices "xFX"
"GuiX"
)
)
(complete 60)
(copyfiles
(source DocLang)
(help @copyfiles-help)
(infos)
(noposition)
(dest @default-dest)
(newname "xFX.guide")
)
;
; ARexx Scripts
;
(complete 70)
(if (askbool (prompt #ARexxTxt) (help @askbool-help))
(copyfiles
(source "")
(help @copyfiles-help)
(infos)
(dest @default-dest)
(choices "ARexx")
)
)
(complete 80)
(set @default-dest (tackon @default-dest "Catalogs"))
(copyfiles
(source "Catalogs")
(help @copyfiles-help)
(dest @default-dest)
(choices "xFX.cd"
"GuiX.cd"
)
)
(complete 90)
(if (IN CatLang 1)
(copyfiles
(source "Catalogs")
(help @copyfiles-help)
(dest @default-dest )
(choices "Italiano")
)
)
(if (IN CatLang 2)
(copyfiles
(source "Catalogs")
(help @copyfiles-help)
(dest @default-dest )
(choices "Dansk")
)
)
(set @default-dest xFXDir)
(complete 100)